import {takeEvery, put} from 'redux-saga/effects'
import request from "../../utils/request";


function* userDemo() {
    yield takeEvery('user-demo', function* () {
        console.log('user-begin');
        const response = yield request('/api/test');
        // const response = yield axios.get('/api/test');
        console.log(response);
        console.log('user-demo');
    });
}

export default {userDemo}
